<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="/js/chosen/chosen.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link type="text/css" href="/css/start/jquery-ui-1.8.21.custom.css" rel="Stylesheet" />	
<link type="text/css" href="/css/1pxtable.css" rel="Stylesheet" />	
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script>
function transfer(order){
	window.location.href = 'http://115.64.171.97:1080/order/order-wizard-inchina-confirm-shipment/orderNo/' + order;
}
</script>
</head>

<body>
<h1>
装箱清单汇总
<br />

</h1>
<form action = "" method = "post" enctype="multipart/form-data">
<?php 
if($this->list){
foreach ($this->list as $k => $v){ ?>
<table width="300" border="1" cellspacing="0" cellpadding="10">
  
  <tr>
  	<th colspan = "2">箱号:<?php echo $k?></th>
  </tr>
  <tr>
  	<th>条形码</th>
    <th>数量</th>
  </tr>
  <?php foreach ($v as $k2 => $v2){?>
  <tr>
  	<td><?php echo $v2['code_product']; ?></td>
    <td><?php echo $v2['china_send']; ?></td>
  </tr>
  <?php }?>
  
  
</table>	

<br/>
<br/>
<?php } ?>
<table width="300" border="1" cellspacing="0" cellpadding="10">
<tr>
	<th colspan = "2">总数量</th>
</tr>
<tr>
	<th>条形码</th>
    <th>总数</th>
</tr>
<?php foreach ($this->totalList as $k3 => $v3){?>
<tr>
	<td><?php echo $k3 ;?></td>
    <td><?php echo $v3 ;?></td>
</tr>
<?php } ?>
</table>
<?php }?>
<br/>
<br/>
</form>
<input type = "submit" onclick = "transfer('<?php echo $this->orderNo;?>')" value = "确认完毕开始发货"/>
</body>

<script src="/js/jquery-1.7.2.min.js" type="text/javascript"></script>
  <script src="/js/chosen/chosen.jquery.js" type="text/javascript"></script>
  <script type="text/javascript"> 
    var config = {
      '.chzn-select': {allow_single_deselect:true},
    }
    for (var selector in config) {
      $(selector).chosen(config[selector]);
    };
  </script>
</html>